package com.sky.config;

import com.sky.properties.GaoDeProperties;
import com.sky.utils.GaoDeApiUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GaoDeConfiguration {

    @Bean
    public GaoDeApiUtil gaoDeApiUtil(GaoDeProperties gaoDeProperties){
        return new GaoDeApiUtil(gaoDeProperties.getKey(),gaoDeProperties.getShopAddress());
    }
}
